package com.ww.learn.oop

fun createRunnable(): Runnable {
    val runnable = object: Runnable {
        override fun run() {
            println("You called...")
        }
    }
    return runnable
}

fun main() {
    val aRunnable = createRunnable()
    aRunnable.run()
}